package org.qs.webservice.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * 封装分页查询数据.
 * @author xusaike
 * @date 2013-10-29
 * @param <T>
 */
public class PageData<T> {

	private int code = 200;
	/**
	 * 总记录数.
	 */
	private long total = 0;
	/**
	 * 每页条数.
	 */
	private int pageSize = 15;
	/**
	 * 页码,从1开始.
	 */
	private int pageNumber = 1;
	/**
	 * 数据集合.
	 */
	private List<T> content = new ArrayList<T>();
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public List<T> getContent() {
		return content;
	}
	public void setContent(List<T> content) {
		this.content = content;
	}


}
